<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>班级信息</h1>
<table border="1">
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>年龄</td>
    </tr>
    <tr th:each="stu:${student}">
        <td th:text="${stu.id}"></td>
        <td th:text="${stu.studentname}"></td>
        <td th:text="${stu.gender}"></td>
        <td th:text="${stu.age}"></td>
    </tr>
</table>
<h3>该学生所在班级</h3>
<table border="1">
    <tr>
        <td>班级编号</td>
        <td th:text="${student.classInfo.classno}"></td>
    </tr>
    <tr>
        <td>班级名称</td>
        <td th:text="${student.classInfo.classname}"></td>
    </tr>
</table>
</body>
</html>